/*
 * my_resampler.h
 *
 *  Created on: 19 août 2011
 *      Author: cedric
 */

#ifndef REFRESAMPLER_H_
#define REFRESAMPLER_H_
#define sample_t double

#include <stdint.h>
#include "common.h"

//Object Handle
typedef struct my_reference_resampler * MyReferenceResampler;

//Constructor and destructor
MyReferenceResampler my_reference_resampler_new(
		uint32_t ntaps,
		uint32_t channels,
		uint32_t input_rate,
		uint32_t output_rate,
		my_resampler_window_function func,
		void(*callback)(sample_t s));
void my_reference_resampler_destroy(MyReferenceResampler);

//Public methods
void my_reference_resampler_process_sample(MyReferenceResampler handle, sample_t* sample);

#endif /* REFRESAMPLER_H_ */
